<template>
  <div id="app">
    <router-view />
    <ToolBox v-if="isLoggedIn"/>
  </div>
</template>

<script>
import ToolBox from './views/ToolBox'
import { mapGetters } from 'vuex'
export default {
  name: 'App',
  components: {
    ToolBox
  },
  computed: {
    // 映射 Vuex 中的 isLoggedIn getter
    ...mapGetters(['isLoggedIn']),
  },
}
</script>
